<template>
  <div>
    <el-row>
      <el-col :span="12">
        <div class="left">
          <div class="shang">
            <i></i>
            <p>待办事项</p>
          </div>
          <div class="xia">
            <p>
              <img :src="Tu" alt="" />
            </p>
            <p>
              <img :src="Tu1" alt="" />
            </p>
            <p>
              <img :src="Tu2" alt="" />
            </p>
          </div>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="right">
          <div class="shang">
            <i></i>
            <p>课程信息</p>
          </div>
          <table border="1" cellspacing="0">
            <thead>
              <tr>
                <th>课程</th>
                <th>课程名称</th>
                <th>授课老师</th>
                <th>课程价格(元)</th>
              </tr>
            </thead>
            <tbody>
              <tr v-for="item in user" :key="item.id">
                <td>
                  <img :src="item.cou" alt="" />
                </td>
                <td>{{ item.name }}</td>
                <td>{{ item.tea }}</td>
                <td>{{ item.age }}</td>
                <td>{{ item.mem }}</td>
              </tr>
            </tbody>
          </table>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Tu from './main/main-lanse.png'
import Tu1 from './main/main-hongse.png'
import Tu2 from './main/main-huangse.png'
import src from './main/main-kecheng1.png'
import src2 from './main/main-kecheng2.png'
// const arr =
export default {
  data() {
    return {
      Tu: Tu,
      Tu1: Tu1,
      Tu2: Tu2,
      // src: src,
      // src2: src2,
      user:  [
        {id: 1, cou: src, name: '幼儿英语入门课程', tea: '王大山', age: '236600'},
        {id: 2, cou: src2, name: '幼儿英语入门课程', tea: '王大山', age: '236600'},
      ]
    }
  }
}
</script>

<style lang="less" scoped>
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
    margin-bottom: 30px;
    .left {
      background-color: #fff;
      margin-right: 20px;
      .shang {
        display: flex;
        height: 43px;
        height: 46px;
        margin-left: 16px;
        i {
          width: 6px;
          height: 12px;
          background-color: blue;
          margin-right: 10px;
          margin-top: 16px;
        }
        p {
          margin-top: 16px;
          font-size: 12px;
        }
      }
      .xia {
        display: flex;
        justify-content: space-around;
        align-items: center;
        p {
          width: 300px;
          height: 150px;
          background: url("./main/main-yuanquan.png") no-repeat;
          background-position: 50% 100%;
          margin-bottom: 60px;
          position: relative;
          img {
            position: absolute;
            top: 20px;
            left: 116px;
          }
        }
      }
    }
    .right {
      background-color: #fff;
      margin-left: 12px;
      height: 256px;
      .shang {
        display: flex;
        margin-left: 16px;
        i {
          width: 6px;
          height: 12px;
          background-color: blue;
          margin-right: 10px;
          margin-top: 16px;
        }
        p {
          margin-top: 16px;
          font-size: 10px;
        }
      }
      table {
        width: 700px;
        margin: 30px auto;
        text-align: center;
        td {
          padding: 18px;
          border-bottom: 1px solid #ccc;
        }
      }
    }
  }
}
</style>